package com.lwy.unos.stuinfo.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lwy.common.utils.PageUtils;
import com.lwy.common.utils.Query;

import com.lwy.unos.stuinfo.dao.GradeInfoDao;
import com.lwy.unos.stuinfo.entity.GradeInfoEntity;
import com.lwy.unos.stuinfo.service.GradeInfoService;


@Service("gradeInfoService")
public class GradeInfoServiceImpl extends ServiceImpl<GradeInfoDao, GradeInfoEntity> implements GradeInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GradeInfoEntity> page = this.page(
                new Query<GradeInfoEntity>().getPage(params),
                new QueryWrapper<GradeInfoEntity>()
        );

        return new PageUtils(page);
    }

}